{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ca09b7f3",
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime\n",
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2c887250",
   "metadata": {},
   "outputs": [],
   "source": [
    "user_data = \"Y\"\n",
    "key = \"123456\"\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "\n",
    "    username = input(\"请输入您的账号:\")\n",
    "    password = input(\"请输入正确密码:\")\n",
    "\n",
    "    if count >= 0:\n",
    "\n",
    "        if username == user_data:\n",
    "            if password == key:\n",
    "                print(\"登陆成功，欢迎%s使用\"%(username))\n",
    "                classtime = input(\"请输入查询时间(Mon\\Tue\\Wed\\Thu\\Fir):\")\n",
    "\n",
    "                if classtime == \"Mon\":\n",
    "                    print(\"大英10:35——12:00\\npython14:30——16:50\")\n",
    "                elif classtime == \"Tue\":\n",
    "                    print(\"创业基础（实践）9:45——12:00\\nH5 14:30——15:55\\n摄影经典作品赏析18:45——20:10\")\n",
    "                elif classtime == \"Wed\":\n",
    "                    print(\"毛概9:45——12:00\\n大英18:45——20:10\")\n",
    "                elif classtime == \"Thu\":\n",
    "                    print(\"毛实10:35——12:00\\n广告文案写作14:30——15:55\\n日本史18:45——20:10\")\n",
    "                elif classtime == \"Fir\":\n",
    "                    print(\"体育8:00——9:30\\nAI 10:35——12:00\\n手绘艺术基础14:30——15:55\")\n",
    "                else:\n",
    "                    print(\"请输入正确格式查询哦~\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"账号或密码输入错误，请重新输入,你还有\", count, \"次尝试机会\")\n",
    "        else:\n",
    "            print(\"账号或密码输入错误，请重新输入,你还有\", count, \"次尝试机会\")\n",
    "    else:\n",
    "         print(\"请3分钟后再次尝试\")\n",
    "         count = 3\n",
    "         time.sleep(180)\n",
    "        \n",
    "        \n",
    "\n",
    "today = time.strftime(\"%a\")\n",
    "right_this_time = time.strftime(\"%H:%M\")\n",
    "\n",
    "if today == \"Mon\":\n",
    "    if \"10:35\" <= right_this_time <= \"12:00\":\n",
    "        print(\"该上大英啦！\")\n",
    "    elif \"00:00\" <= right_this_time < \"10:35\":\n",
    "        print(\"下一节课是大英，要带好课本哦~\")\n",
    "    elif \"12:00\" < right_this_time < \"14:30\":\n",
    "        print(\"下一节课是python\")\n",
    "    elif \"14:30\" <= right_this_time <= \"16:50\":\n",
    "        print(\"该上python啦！\")\n",
    "    else:\n",
    "        print(\"今天的课上完啦！！\")\n",
    "elif today == \"Tue\":\n",
    "    if \"9:45\" <= right_this_time <= \"12:00\":\n",
    "        print(\"该上创业基础（实践）啦！\")\n",
    "    elif \"0:00\" <= right_this_time < \"10:45\":\n",
    "        print(\"下一节课是创业基础（实践）\")\n",
    "    elif \"12:00\" < right_this_time < \"14:30\":\n",
    "        print(\"下一节课是H5\")\n",
    "    elif \"14:30\" <= right_this_time <= \"15:55\":\n",
    "        print(\"该上H5啦！\")\n",
    "    elif \"15:55\" < right_this_time < \"18:45\":\n",
    "        print(\"下一节课是摄影经典作品赏析\")\n",
    "    elif \"18:45\" <= right_this_time <= \"20:10\":\n",
    "        print(\"该上摄影经典作品赏析啦！\")\n",
    "    else:\n",
    "        print(\"今天的课上完啦！\")\n",
    "elif today == \"Wed\":\n",
    "    if \"9:45\" <= right_this_time <= \"12:00\":\n",
    "        print(\"该上毛概啦！\")\n",
    "    elif \"0:00\" <= right_this_time < \"9:45\":\n",
    "        print(\"下一节课是毛概\")\n",
    "    elif \"12:00\" < right_this_time < \"18:45\":\n",
    "        print(\"下一节课是大英\")\n",
    "    elif \"18:45\" <= right_this_time <= \"20:10\":\n",
    "        print(\"该上大英啦！\")\n",
    "    else:\n",
    "        print(\"今天的课上完啦！\")\n",
    "elif today == \"Thu\":\n",
    "    if \"10:35\" <= right_this_time <= \"12:00\":\n",
    "        print(\"该上毛实课啦！\")\n",
    "    elif \"0:00\" <= right_this_time < \"10:35\":\n",
    "        print(\"下一节课是毛实\")\n",
    "    elif \"12:00\" < right_this_time < \"14:30\":\n",
    "        print(\"下一节课是广告文案写作\")\n",
    "    elif \"14:30\" <= right_this_time <= \"15:55\":\n",
    "        print(\"该上广告文案写作啦！\")\n",
    "    elif \"15:55\" < right_this_time < \"18:45\":\n",
    "        print(\"下一节课是日本史\")\n",
    "    elif \"18:45\" <= right_this_time <= \"20:10\":\n",
    "        print(\"该上日本史啦！\")\n",
    "    else:\n",
    "        print(\"今天的课上完啦！明天就周五啦！\")\n",
    "elif today == \"Fir\":\n",
    "    if \"8:00\" <= right_this_time <= \"9:30\":\n",
    "        print(\"该上体育课啦！\")\n",
    "    elif \"0:00\" <= right_this_time < \"8:00\":\n",
    "        print(\"下一节课是体育\")\n",
    "    elif \"8:00\" < right_this_time < \"10:35\":\n",
    "        print(\"下一节课是AI\")\n",
    "    elif \"10:35\" <= right_this_time <= \"12:00\":\n",
    "        print(\"该上AI课啦！\")\n",
    "    elif \"12:00\" < right_this_time < \"14:30\":\n",
    "        print(\"下一节课是手绘艺术基础\")\n",
    "    elif \"14:30\" <= right_this_time <= \"15:55\":\n",
    "        print(\"该上手绘艺术基础啦！\")\n",
    "    else:\n",
    "        print(\"今天的课上完啦！可以享受周末啦！\")\n",
    "else:\n",
    "    print(\"好好休息一下吧，也不要忘了写作业哦（低语x）\")\n",
    "    \n",
    "   \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8678aa4a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "hide_input": false,
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
